home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
awe2-0_1.lha
/
awe2-0.1
/
Src
/
HardwareContextP-ns32k.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-07-09
|
852b
|
42 lines
// This may look like C code, but it is really -*- C++ -*-
//
// Copyright (C) 1988 University of Illinois, Urbana, Illinois
// Copyright (C) 1989 University of Colorado, Boulder, Colorado
// Copyright (C) 1990 University of Colorado, Boulder, Colorado
//
// written by Dirk Grunwald (grunwald@foobar.colorado.edu)
//
#ifndef HardwareContextP_h
#define HardwareContextP_h
#pragma once
#include "HardwareContext.h"
inline void **
HardwareContext::mallocAt()
{
return( stackMallocAt );
}
static inline long
HardwareContext::maxStackDepth()
{
return( long(stackMax) );
}
static inline void
HardwareContext::switchContext(HardwareContext *to)
{
if ( checkStackLimits ) { // check old context
checkStack();
}
magicSwitchTo(to);
if ( checkStackLimits ) { // check new context
checkStack();
}
}
#endif HardwareContextP_h